﻿@using FineAdmin.Model;
@{
    Layout = null;
    var AppBar=ViewBag.AppBar as List<AppBarModel>;
    AppBar = AppBar.Where(m => m.ShowSpecial == true && m.ShowPhone==true).ToList();
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>优惠</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/weui/2.3.0/style/weui.min.css" rel="stylesheet">
    <link href="~/Content/css/weuix.css" rel="stylesheet" />
    <link href="~/Content/huiji.css" rel="stylesheet" />
</head>
<body ontouchstart>
    <div>
        <div class="weui-grids">

            @foreach (var item in AppBar)
            {
                <a href="javascript:;" class="weui-grid js_grid" data-id="@item.Id">
                    <div class="weui-grid__icon">
                        <img src="@item.Icon_S" alt="">
                    </div>
                    <p class="weui-grid__label">
                        @item.ShortName
                    </p>
                </a>
            }


        </div>
    </div>
    @Html.Partial("~/Views/Shared/_BottomMenu.cshtml")

    <script src="https://cdn.bootcdn.net/ajax/libs/zepto/1.2.0/zepto.js"></script>
    <script src="~/Scripts/zepto.weui.js"></script>
    <script src="~/Scripts/huiji.js"></script>
    <script>
        $(document).on('tap click', ".weui-grids .js_grid", function () {

            location.href = "/Mobile/SubjecShow?id=" + $(this).data("id");

        });
    </script>
</body>
</html>
